﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion
#region Usings

using System.Windows;
using System.Windows.Media;

#endregion


namespace ScrumTable.UI.View.WinTouch.UserControls
{
    /// <summary>
    /// Interaction logic for BarControl.xaml
    /// </summary>
    public partial class BarControl 
    {
        #region Declarations
        //--------------------------------------------------------------------
        // Declarations
        //--------------------------------------------------------------------
       
        #endregion

        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------

        #region FirstValue
        /// <summary>
        /// DependencyProperty for FirstValue.
        /// </summary>
        public static readonly DependencyProperty FirstValueProperty =
            DependencyProperty.Register("FirstValue",
                                        typeof(double),
                                        typeof(BarControl),
                                        new PropertyMetadata(1.0));
        /// <summary>
        /// Gets or sets if the first value in the BarControl.
        /// </summary>
        /// <value>An amount</value>
        public double FirstValue
        {
            get { return (double)GetValue(FirstValueProperty); }
            set
            {
                SetValue(FirstValueProperty, value);
            }
        }
        #endregion

        #region SecondValue
        /// <summary>
        /// DependencyProperty for SecondValue.
        /// </summary>
        public static readonly DependencyProperty SecondValueProperty =
            DependencyProperty.Register("SecondValue",
                                        typeof(double),
                                        typeof(BarControl),
                                        new PropertyMetadata(0.0));

        /// <summary>
        /// Gets or sets if the second value in the BarControl.
        /// </summary>
        /// <value>An amount</value>
        public double SecondValue
        {
            get { return (double)GetValue(SecondValueProperty); }
            set
            {
                SetValue(SecondValueProperty, value);
            }
        }
        #endregion


        #region BackColor
        /// <summary>
        /// DependencyProperty for BackColor.
        /// </summary>
        public static readonly DependencyProperty BackColorProperty =
            DependencyProperty.Register("BackColor",
                                        typeof(Brush),
                                        typeof(BarControl),
                                        new PropertyMetadata(Brushes.White));

        /// <summary>
        /// Gets or sets if the background color in the BarControl.
        /// </summary>
        /// <value>Brush</value>
        public Brush BackColor
        {
            get { return (Brush)GetValue(BackColorProperty); }
            set
            {
                SetValue(BackColorProperty, value);
            }
        }
        #endregion

        #region FirstColor
        /// <summary>
        /// DependencyProperty for FirstColor.
        /// </summary>
        public static readonly DependencyProperty FirstColorProperty =
            DependencyProperty.Register("FirstColor",
                                        typeof(Brush),
                                        typeof(BarControl),
                                        new PropertyMetadata(Brushes.Red));

        /// <summary>
        /// Gets or sets if the second color in the BarControl.
        /// </summary>
        /// <value>Brush</value>
        public Brush FirstColor
        {
            get { return (Brush)GetValue(FirstColorProperty); }
            set
            {
                SetValue(FirstColorProperty, value);
            }
        }
        #endregion

        #region SecondColor
        /// <summary>
        /// DependencyProperty for SecondColor.
        /// </summary>
        public static readonly DependencyProperty SecondColorProperty =
            DependencyProperty.Register("SecondColor",
                                        typeof(Brush),
                                        typeof(BarControl),
                                        new PropertyMetadata(Brushes.Green));

        /// <summary>
        /// Gets or sets if the second color in the BarControl.
        /// </summary>
        /// <value>Brush</value>
        public Brush SecondColor
        {
            get { return (Brush)GetValue(SecondColorProperty); }
            set
            {
                SetValue(SecondColorProperty, value);
            }
        }
        #endregion

        #region FirstColorText
        /// <summary>
        /// DependencyProperty for FirstColorText.
        /// </summary>
        public static readonly DependencyProperty FirstColorTextProperty =
            DependencyProperty.Register("FirstColorText",
                                        typeof(Brush),
                                        typeof(BarControl),
                                        new PropertyMetadata(Brushes.Black));

        /// <summary>
        /// Gets or sets if the second text color in the BarControl.
        /// </summary>
        /// <value>Brush</value>
        public Brush FirstColorText
        {
            get { return (Brush)GetValue(FirstColorTextProperty); }
            set
            {
                SetValue(FirstColorTextProperty, value);
            }
        }
        #endregion

        #region SecondColorText
        /// <summary>
        /// DependencyProperty for SecondColorText.
        /// </summary>
        public static readonly DependencyProperty SecondColorTextProperty =
            DependencyProperty.Register("SecondColorText",
                                        typeof(Brush),
                                        typeof(BarControl),
                                        new PropertyMetadata(Brushes.Black));

        /// <summary>
        /// Gets or sets if the second text color in the BarControl.
        /// </summary>
        /// <value>Brush</value>
        public Brush SecondColorText
        {
            get { return (Brush)GetValue(SecondColorTextProperty); }
            set
            {
                SetValue(SecondColorTextProperty, value);
            }
        }
        #endregion

        #endregion

        #region Constructors / Destructor
        /// <summary>
        /// Initializes a new instance of the <see cref="BarControl"/> class.
        /// </summary>
        public BarControl()
        {
            if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
                InitializeComponent();
        }
        #endregion

        #region Methods
        //--------------------------------------------------------------------
        // Methods
        //--------------------------------------------------------------------


        #endregion

        #region Events
        //--------------------------------------------------------------------
        // Events
        //--------------------------------------------------------------------
     
        #endregion
    }
}
